package com.cet.lxf.reflection.test05;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-07-29 11:24
 **/
public class Main {
    public static void main(String[] args) {
        Class<Integer> cls = Integer.class;
        Class<? super Integer> n = cls.getSuperclass();
        System.out.println(n);
        Class<? super Integer> o = n.getSuperclass();
        System.out.println(o);
        Class<? super Integer> s = o.getSuperclass();
        System.out.println(s);

        Class<?>[] interfaces = cls.getInterfaces();
        for (Class<?> i : interfaces) {
            System.out.println(i);
        }
    }
}
